<h3 highlight>Hero List</h3>
<p>Get your heroes here</p>
<button routerLink="/sidekicks">Go to sidekicks</button>
<ul class="heroes">
  <li *ngFor="let hero of heroes" (click)="onSelect(hero)" [class.selected]="hero === selectedHero">
    <span class="badge">{{hero.id}}</span> {{hero.name}}
    <button class="delete" (click)="delete(hero); $event.stopPropagation()">x</button>
  </li>
  <!--<li *ngFor="let hero of heroes" (click)="onSelect(hero)" [class.selected]="isSelected(hero)">
    <span class="badge">{{hero.id}}</span> {{hero.name}}
    <button class="delete" (click)="delete(hero); $event.stopPropagation()">x</button>
  </li>-->
</ul>
<!--<ul>
  <li *ngFor="let hero of heroes" [@heroState]="hero.state" (click)="hero.toggleState()">
    {{hero.name}}
  </li>
</ul>-->
<div *ngIf="selectedHero">
  <h2>
    {{selectedHero.name | uppercase}} is my hero
  </h2>
  <button (click)="gotoDetail()">View Details</button>
</div>

<div class="heroesAdd">
  <label>Hero name:</label> <input #heroName />
  <button (click)="add(heroName.value); heroName.value=''">
    Add
  </button>
</div>